<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>window 登陆</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">


	<link rel="stylesheet" type="text/css" href="extjs/resources/css/ext-all.css" />

	<script type="text/javascript" src="extjs/ext-base.js"></script>
	<script type="text/javascript" src="extjs/ext-all.js"></script>
	
	<script>	
	Ext.onReady(function() {

			var _Window = new Ext.Window({
						renderTo : Ext.getBody(),
						title : "登 陆",
						//frame : true, 					// 圆角window 没有这个属性
						width : 260,
						height : 150,
						layout : "form", 					// 布局
						labelWidth : 45,
						plain : true,    					// 背景色
						resizable : false,  				//禁止调整大小  window
						bodyStyle : "padding : 5px",		//自定义的CSS样式，它将被应用到body 元素上
						closable : false,					//置为true将显示'close'工具按钮，并允许用户关闭窗体  window
						buttonAlign : "center",				//按钮 的对齐方式 默认为 'right' 
						
						defaults: {             
    						xtype : "textfield",
    						width : 180
						},

						items : [{
								fieldLabel : "账 号 "
						},{
								fieldLabel : "密 码 "
						}],
						buttons : [{
								text : "确 定"
						},{
								text : "取 消",
								handler : function(){
								
									_Window.hide();
								
								}
						}]

					})
			_Window.show();

		});
	
	
	
	</script>

  </head>
  
 <body>  

</body>  
</html>
